<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * 左侧菜单栏
 */
$config['menu'] = [
                    [
                            'name' => '系统设置',
                            'method' => '',
                            'icon' => 'fa fa-cogs',
                            'active'=>['account','pointsetting','role'],
                            'role'=> 'SystemManager',
                            'child' => [
                                    [
                                            'name' => '角色管理',
                                            'method' => '/luckydog/role/rolelist',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'role',   
                                            'role'=> 'SystemManagerRole',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加角色',
                                                'edit'=>'设置',
                                                'delete'=>'删除',
                                                'forbid'=>'禁用',
                                                ]
                                    ],
                                    [
                                            'name' => '账号管理',
                                            'method' => '/luckydog/account/accountlist',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'account',
                                            'role'=> 'SystemManagerAccount',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加账户',
                                                'edit'=>'设置',
                                                'delete'=>'删除',
                                                'forbid'=>'禁用',
                                                ]
                                    ],
                                    [
                                            'name' => '积分管理',
                                            'method' => '/luckydog/pointsetting/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'pointsetting',
                                            'role'=> 'SystemManagerPointsetting',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'edit'=>'修改',
                                                ]
                                    ]
                            ],
                    ],
                    [
                            'name' => '会员管理',
                            'method' => '',
                            'icon' => 'fa fa-user',
                            'active'=>['user'],
                            'role'=> 'UserManager',
                            'child' => [
                                    [
                                            'name' => '用户管理',
                                            'method' => '/luckydog/user/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'user',
                                            'role'=> 'UserManagerList',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'delete'=>'删除',
                                                'forbid'=>'禁用',
                                                ]
                                    ]
                            ],
                    ],
                    [
                            'name' => '新闻管理',
                            'method' => '',
                            'icon' => 'fa fa-users',
                            'active'=>['newsCategory','news','questionall','ruanwen'],
                            'role'=> 'NewsManager',
                            'child' => [
                                    [
                                            'name' => '新闻分类',
                                            'method' => '/luckydog/newscategory/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'newsCategory',
                                            'role'=> 'NewsManagerCategory',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加分类',
                                                'edit'=>'修改',
                                                'delete'=>'删除',
                                                ]
                                    ],
                                    [
                                            'name' => '新闻列表管理',
                                            'method' => '/luckydog/news/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'news',
                                            'role'=> 'NewsManagerList',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加新闻',
                                                'edit'=>'修改',
                                                'publish'=>'上下架',
                                                'delete'=>'删除',
                                                'examination'=>'答题',
                                                ]
                                    ]/**,
                                    [
                                            'name' => '新闻试题已答题',
                                            'method' => '/luckydog/examination/questionAll',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'questionall',
                                            'role'=> 'NewsManagerQuestionall'
                                    ]*/,
                                    [
                                            'name' => '新闻试题管理',
                                            'method' => '/luckydog/examination/ruanwen',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'ruanwen',
                                            'role'=> 'NewsManagerRuanwen',
                                            'child'=>[
                                                'verify'=>"审核"
                                                ]
                                    ],
                            ],
                    ],
                    [
                            'name' => '轮播管理',
                            'method' => '',
                            'icon' => 'fa fa-indent',
                            'active'=>['ad','carousel'],
                            'role'=> 'AdManager',
                            'child' => [
                                    [
                                            'name' => '资讯轮播图',
                                            'method' => '/luckydog/ad/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'ad',
                                            'role'=> 'AdManagerAd',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加轮播图',
                                                'edit'=>'修改',
                                                'publish'=>'上下架',
                                                'delete'=>'删除',
                                                ]
                                    ],
                                    [
                                            'name' => '分类轮播图',
                                            'method' => '/luckydog/ad/categorylist',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'ad',
                                            'role'=> 'AdManagerCatad',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加轮播图',
                                                'edit'=>'修改',
                                                'publish'=>'上下架',
                                                'delete'=>'删除',
                                                ]
                                    ],
                                    [
                                            'name' => '奖励广告轮播文字',
                                            'method' => '/luckydog/point/carousellist',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'carousel',
                                            'role'=> 'AdManagerCarousel',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加',
                                                'edit'=>'修改',
                                                'delete'=>'删除',
                                                ]
                                    ],
                            ],
                    ],
                    [
                            'name' => '积分兑换',
                            'method' => '',
                            'icon' => 'fa  fa-rmb ',
                            'active'=>['goods','order'],
                            'role'=> 'GoodsManager',
                            'child' => [
                                    [
                                            'name' => '积分兑换',
                                            'method' => '/luckydog/goods/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'goods',
                                            'role'=> 'GoodsManagerList',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加商品',
                                                'edit'=>'修改',
                                                'publish'=>'上下架',
                                                'delete'=>'删除',
                                                ]
                                    ],
                                    [
                                            'name' => '订单列表',
                                            'method' => '/luckydog/goods/orderlist',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'order',
                                            'role'=> 'GoodsManagerOrder',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'status'=>'发货状态',
                                                'detail'=>'查看详情',
                                                'delete'=>'删除',
                                                ]
                                    ],
                            ],
                    ],
                    [
                            'name' => '转盘活动',
                            'method' => '',
                            'icon' => 'fa  fa-meh-o',
                            'active'=>['luckydraw','chooseuser'],
                            'role'=> 'LuckydrawManager',
                            'child' => [
                                    [
                                            'name' => '转盘活动商品',
                                            'method' => '/luckydog/luckydraw/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'luckydraw',
                                            'role'=> 'LuckydrawManagerList',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加商品',
                                                'edit'=>'修改',
                                                'publish'=>'上下架',
                                                'delete'=>'删除',
                                                ]
                                    ],
                                    [
                                            'name' => '转盘中奖信息',
                                            'method' => '/luckydog/luckydraw/orderList',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'luckydraw',
                                            'role'=> 'LuckydrawManagerOrder',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'status'=>'发货状态',
                                                'detail'=>'查看详情',
                                                'delete'=>'删除',
                                                ]
                                    ],
                                    [
                                            'name' => '月度年度抽奖',
                                            'method' => '/luckydog/luckydraw/chooseUser',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'chooseuser',
                                            'role'=> 'LuckydrawManagerOrder',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'status'=>'发货状态',
                                                'detail'=>'查看详情',
                                                'delete'=>'删除',
                                                ]
                                    ]
                            ],
                    ],
                    [
                            'name' => '评论管理',
                            'method' => '',
                            'icon' => 'fa fa-list-ol',
                            'active'=>['review'],
                            'role'=> 'ReviewManager',
                            'child' => [
                                    [
                                            'name' => '评论列表',
                                            'method' => '/luckydog/review/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'review',
                                            'role'=> 'ReviewManagerList',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'verify'=>'审核',
                                                'delete'=>'删除',
                                                ]

                                    ],
                            ],
                    ],
                    [
                            'name' => '招聘信息',
                            'method' => '',
                            'icon' => 'fa  fa-meh-o',
                            'active'=>['jobs'],
                            'role'=> 'JobsManager',
                            'child' => [
                                    [
                                            'name' => '招聘信息列表',
                                            'method' => '/luckydog/jobs/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'jobs',
                                            'role'=> 'JobsManagerList',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加职位',
                                                'edit'=>'修改',
                                                'publish'=>'上下架',
                                                'delete'=>'删除',
                                                ]
                                    ]
                            ],
                    ],
                    [
                            'name' => '优惠活动',
                            'method' => '',
                            'icon' => 'fa  fa-meh-o',
                            'active'=>['promotional'],
                            'role'=> 'PromotionalManager',
                            'child' => [
                                    [
                                            'name' => '优惠活动列表',
                                            'method' => '/luckydog/promotional/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'promotional',
                                            'role'=> 'PromotionalManagerList',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'add'=>'添加优惠',
                                                'edit'=>'修改',
                                                'publish'=>'上下架',
                                                'delete'=>'删除',
                                                ]
                                    ]
                            ],
                    ],
                    [
                            'name' => '意见反馈管理',
                            'method' => '',
                            'icon' => 'fa fa-envelope-o',
                            'active'=>['feedback'],
                            'role'=> 'FeedbackManager',
                            'child' => [
                                    [
                                            'name' => '意见反馈列表',
                                            'method' => '/luckydog/feedback/index',
                                            'icon' => 'fa fa-circle-o',
                                            'active'=>'feedback',
                                            'role'=> 'FeedbackManagerList',
                                            'child'=>[
                                                //'view'=>"查看",
                                                'verify'=>'处理',
                                                'delete'=>'删除',
                                                ]
                                    ],
                            ],
                    ]
                ];
